﻿using Abp.Application.Services.Dto;
using shenghua.Basics.CommodityClassSetting.Dto;
using shenghua.Basics.Setting.Dto;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace shenghua.Basics.CommodityClassSetting
{
    public interface ICommodityClassAppService
    {
        Task<CommodityClassDto> Create(CreateCommodityClassDto input);
        Task<CommodityClassDto> Update(UpdateCommodityClassDto input);
        Task Delete(EntityDto input);
        Task<List<CommodityClassDto>> GetAll(int? parentId);
        Task<List<WordTreeDto<CommodityClassDto>>> GetTree(int? parentId);
        Task SortUp(EntityDto input);
        Task SortDown(EntityDto input);
        Task MoveTo(MoveCommodityClassToDto input);
        Task MoveUp(EntityDto input);
        Task MoveDown(EntityDto input);
    }
}
